<template>
  <com12 ref="com12"></com12>
</template>

<script>
import com12 from '@/components/zhishi/com-12.vue'
export default {
  components: {
    com12
  },
  mounted () {
    console.log(this.$refs.com12.x)  // 父组件获取到的子组件的数据
  }
}
</script>

<style>

</style>